package com.yijumao.shop.mapper;

import com.yijumao.shop.domain.Item;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ItemMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Item record);

    Item selectByPrimaryKey(Integer id);

    List<Item> selectAll();

    int updateByPrimaryKey(Item record);

    //查找热门商品和优惠商品
    List<Item> selectByIflag(int flag);

    //根据cid查询上架商品信息
    List<Item> selectByCid(int cid);
}